﻿<%@page pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>添加客户 - 超市账单管理系统</title>
	<link type="text/css" rel="stylesheet" href="css/style.css">
	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<!-- 引入日期选择器插件 -->
	<link type="text/css" rel="stylesheet" href="css/datepicker.css">
	<script type="text/javascript" src="js/jquery.datepicker.js"></script>
</head>
<body>
<div class="main">
	<div class="optitle clearfix">
		<h2>
			<div class="title">添加客户&gt;&gt;</div>
			<div class="title">${requestScope.msg}</div>
		</h2>
	</div>
	<form id="form1" name="form1" method="post" action="${pageContext.request.contextPath}/customer/addCustomer">
		<input type="hidden" name="method" value="add">
		<div class="content">
			<table class="box">
				<tbody>
				<tr>
					<td class="field">客户姓名：</td>
					<td><input type="text" name="customerName" class="text" id="customerName" value="">
						<font color="red">*</font><font color="red" id="name_span"></font></td>
				</tr>
				<tr>
					<td class="field">联系电话：</td>
					<td><input type="text" name="customerPhone" class="text" id="customerPhone" value="">
						<font color="red">*</font><font color="red" id="phone_span"></font></td>
				</tr>
				<tr>
					<td class="field">会员级别：</td>
					<td>
						<select name="membershipLevel" id="membershipLevel">
							<option value="普通会员">普通会员</option>
							<option value="高级会员">高级会员</option>
							<option value="VIP会员">VIP会员</option>
						</select>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		<div class="buttons">
			<input type="submit" name="add" id="add" value="保存" class="input-button">
			<input type="button" name="button" id="button" onclick="history.back(-1)" value="返回" class="input-button">
		</div>
	</form>
</div>
<script type="text/javascript" src="js/customer/add.js"></script>
<script type="text/javascript">
	// 初始化日期选择器
	$(function() {
		// 点击文本框或日历图标弹出日期选择器
		$("#registerDate, #datePickerIcon").datepicker({
			format: 'yyyy-mm-dd',
			autoclose: true,
			todayHighlight: true
		});
	});
</script>
</body>
</html>